Imports Microsoft.VisualBasic
Imports Cdm.DataCore

Public Interface IPermission

    Property PrimaryObject() As ConfigurableObject

    ''' <summary>
    ''' Permission Type to pass to all the entities on the page.
    ''' This type overrides form level permissions.
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    ReadOnly Property EntityPermissionType() As Cdm.DataCore.UserSecurity.Permission.PermissionType

    ''' <summary>
    ''' Used to reset the controls on a page when a user has navigated off the tab.
    ''' Its purpose is to ensure that dynamically created controls do not cause an issue
    ''' when trying to reload viewstate.
    ''' </summary>
    ''' <remarks></remarks>
    Sub ResetControls()

    ReadOnly Property ControlCollection() As System.Web.UI.ControlCollection

    ''' <summary>
    ''' Returns the section Name to add to the validation errors descriptions.
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    ReadOnly Property SectionName() As String
End Interface
